package com.dy.project.controller;

import com.dy.project.domain.McCommodity;
import com.dy.project.service.IMcCommodityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

/**
 * 商品Controller
 *
 * @author ruoyi
 * @date 2020-07-13
 */
@RestController
@RequestMapping("/commodity/commodity")
public class McCommodityController {
    @Autowired
    private IMcCommodityService mcCommodityService;

    /**
     * 查询商品列表
     */
    @GetMapping("/list")
    public List<McCommodity> list(McCommodity mcCommodity) {
        List<McCommodity> list = mcCommodityService.selectMcCommodityList(mcCommodity);
        return list;
    }
}
